package priv.wjh.study.elasticsearch.index;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductIndexRepository extends ElasticsearchRepository<ProductIndex, String> {
    void deleteByProductId(Integer productId);
    int deleteBatchByProductId(List<Integer> productIdList);
}
